import {HTTP} from '../util/http.js'

class MiniUserModel extends HTTP{
    RegisterByMini(workerID,name,sCallback){
        this.request({
            url:'miniuser/register',
            data:{
                workerID:workerID,
                name:name,
            },
            method:'POST',
            success:(res)=>{
                sCallback(res)
            }
        })
    }
}

export {
    MiniUserModel
}